package com.xintai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 库位对象 erp_kuwei
 * 
 * @author xintai
 * @date 2020-12-29
 */
public class ErpKuwei extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库位ID */
    private Integer kuweiId;

    /** 仓库ID */
    private Integer cangkuId;

    @Excel(name = "仓库名称", targetAttr = "cangkuName", type = Excel.Type.EXPORT)
    private ErpCangku erpCangku;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String kuweiName;

    /** 库位备注 */
    @Excel(name = "库位备注")
    private String kuweiRemark;

    /** 维护人 */
    private Integer userId;

    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date kuweiTime;

    /** 是否删除 ： 0 = 正常， 1 = 删除， 删除后不显示 */
    private Integer kuweiIsdel;

    public Integer getKuweiId() {
        return kuweiId;
    }

    public void setKuweiId(Integer kuweiId) {
        this.kuweiId = kuweiId;
    }

    public Integer getCangkuId() {
        return cangkuId;
    }

    public void setCangkuId(Integer cangkuId) {
        this.cangkuId = cangkuId;
    }

    public ErpCangku getErpCangku() {
        return erpCangku;
    }

    public void setErpCangku(ErpCangku erpCangku) {
        this.erpCangku = erpCangku;
    }

    public String getKuweiName() {
        return kuweiName;
    }

    public void setKuweiName(String kuweiName) {
        this.kuweiName = kuweiName;
    }

    public String getKuweiRemark() {
        return kuweiRemark;
    }

    public void setKuweiRemark(String kuweiRemark) {
        this.kuweiRemark = kuweiRemark;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Date getKuweiTime() {
        return kuweiTime;
    }

    public void setKuweiTime(Date kuweiTime) {
        this.kuweiTime = kuweiTime;
    }

    public Integer getKuweiIsdel() {
        return kuweiIsdel;
    }

    public void setKuweiIsdel(Integer kuweiIsdel) {
        this.kuweiIsdel = kuweiIsdel;
    }

    @Override
    public String toString() {
        return "ErpKuwei{" +
                "kuweiId=" + kuweiId +
                ", cangkuId=" + cangkuId +
                ", erpCangku=" + erpCangku +
                ", kuweiName='" + kuweiName + '\'' +
                ", kuweiRemark='" + kuweiRemark + '\'' +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", kuweiTime=" + kuweiTime +
                ", kuweiIsdel=" + kuweiIsdel +
                '}';
    }
}
